package java67_adv4;

import java.util.Date;

public class DateTest {

	public static void main(String[] args) {
		Date d = new Date();
		System.out.println(d);
		System.out.println("毫秒:" + d.getTime());
		System.out.println(System.currentTimeMillis());
		System.out.println("现在时间:");
		System.out.println("年:" + d.getYear());// 1900
		System.out.println("月:" + d.getMonth());// 0
		System.out.println("天:" + d.getDate());// 1
		System.out.println("?:" + d.getDay());// 周几
		System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
		Date d2 = new Date(0L);
		System.out.println(d2);
	}

}
